/*
 * File Name : users.h
 * Auther : dream.liuguobiao
 * Create Date : 2010-5-11
 * Last Edit : 2010-5-11
 */

#ifndef USERS_H
#define USERS_H

#include "user.h"

class users
{
private:
  user *first_user;
  user *last_user;
  int new_ID;
  int user_count;
  static users *instance_users ;
  users();

public:
  ~users(){}
  static users *get_users();
  user *find_user_by_name( std::string *name);
  user *find_user_by_ID( int ID);
  bool insert_user(user *new_user);
  bool delete_user_by_name( std::string *name );
  int get_user_count();
};

#endif
